import { http } from '@/utils/request';
import { ILoginUser } from './common.type';
import { IResponse } from './types';
//用户登录
export const loginByUsername = (data: ILoginUser) => {
    return http.post<IResponse>('/sys/login', data)
}

//获取用户路由权限
export const getUserPermission = () => {
    return http.get<IResponse>('/sys/permission')
}